<?php
namespace app\index\controller;
use app\BaseController;
use think\facade\Db;
class Tools extends Base{

    //重置数据库密码
    public function resetAdmin(){
        Db::table('an_admin')
        ->where('id',9)
        ->update(['pass'=>'74b794fc074876a56c1895c35a549c2b']);
    }
}
